export default new class LaunchVueImSocketLogger {
    constructor() {
        this.debug = false;
        this.prefix = '%c== LaunchVueImSocket ==: ';
    }

    info(text, data = '') {
        if (this.debug) {
            window.console.info(this.prefix + `%c${text}`, 'color: blue; font-weight: 600', 'color: #333333', data);
        }
    }

    error(text, data = '') {
        if (this.debug) {
            window.console.error(this.prefix + `%c${text}`, 'color: red; font-weight: 600', 'color: #333333', data)
        }
    }

    warn() {
        if (this.debug) {
            window.console.warn(this.prefix, ...arguments)
        }
    }

    event(text, data = '') {
        if (this.debug) {
            window.console.info(this.prefix + `%c${text}`, 'color: blue; font-weight: 600', 'color: #333333', data);
        }
    }
}